package de.dlrg.wms.gui.utils;

import java.util.Observable;
import java.util.Observer;

public class ExitSignaler {
	private Observable closing = new Observable() {
		@Override
		public void notifyObservers() {
			setChanged();
			super.notifyObservers();
		}
	};

	public void signalExit() {
		this.closing.notify();
	}
	
	public void register(Observer observer) {
		this.closing.addObserver(observer);
	}
}
